From: Basil L. Contovounesios Date: Sun, 28 Feb 2021 16:29:05 +0000 (+0000) Subject: ; Fix process-lines-handling-status docstring. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~18^2~3743 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a286e02580cc4daf0e9edfc0086c517a1770dff4;p=emacs.git ; Fix process-lines-handling-status docstring. --- diff --git a/lisp/subr.el b/lisp/subr.el index 0c97c603a65..0b563473999 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2533,10 +2533,10 @@ use `start-file-process'." (defun process-lines-handling-status (program status-handler &rest args) "Execute PROGRAM with ARGS, returning its output as a list of lines. -If STATUS-HANDLER is non-NIL, it must be a function with one +If STATUS-HANDLER is non-nil, it must be a function with one argument, which will be called with the exit status of the program before the output is collected. If STATUS-HANDLER is -NIL, an error is signalled if the program returns with a non-zero +nil, an error is signaled if the program returns with a non-zero exit status." (with-temp-buffer (let ((status (apply #'call-process program nil (current-buffer) nil args))) @@ -2564,7 +2564,7 @@ Also see `process-lines-ignore-status'." "Execute PROGRAM with ARGS, returning its output as a list of lines. The exit status of the program is ignored. Also see `process-lines'." - (apply #'process-lines-handling-status program #'identity args)) + (apply #'process-lines-handling-status program #'ignore args)) (defun process-live-p (process) "Return non-nil if PROCESS is alive.